package com.dragon.modules.yuegou.query.busd;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.dragon.modules.yuegou.entity.busd.DistrictPermissionEntity;
import com.dragon.modules.yuegou.enums.YsqAppType;
import com.dragon.modules.yuegou.enums.busd.DistrictPermissionMark;
import com.dragon.modules.yuegou.mybatis.Condition;
import com.dragon.modules.yuegou.mybatis.Query;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonUnwrapped;

import java.time.LocalDateTime;

/**
 * 商圈权限 动态查询条件
 * 
 * @author pbuilder generated
 * @date 2019-08-21 16:28:22
 * @version 2.0
 */
@JsonInclude(Include.NON_NULL)
public class DistrictPermissionQuery extends DistrictPermissionEntity implements Query<DistrictPermissionEntity> {

    /** 查询条件 */
	@JsonUnwrapped(prefix = "id")
	private Condition<String> idCondition;

    /** 查询条件 */
	@JsonUnwrapped(prefix = "groupId")
	private Condition<String> groupIdCondition;

    /** 查询条件 */
	@JsonUnwrapped(prefix = "busdId")
	private Condition<String> busdIdCondition;

    /** 查询条件 */
	@JsonUnwrapped(prefix = "menuId")
	private Condition<String> menuIdCondition;

    /** 查询条件 */
	@JsonUnwrapped(prefix = "permission")
	private Condition<String> permissionCondition;

    /** 创建人ID查询条件 */
	@JsonUnwrapped(prefix = "createdBy")
	private Condition<String> createdByCondition;

    /** 更新人ID查询条件 */
	@JsonUnwrapped(prefix = "modifiedBy")
	private Condition<String> modifiedByCondition;

    /** 查询条件 */
	@JsonUnwrapped(prefix = "createdTime")
	private Condition<String> createdTimeCondition;

    /** 更新时间查询条件 */
	@JsonUnwrapped(prefix = "modifiedTime")
	private Condition<LocalDateTime> modifiedTimeCondition;

    /** 逻辑删除，1表示已删除,0表示未删除查询条件 */
	@JsonUnwrapped(prefix = "del")
	private Condition<Boolean> delCondition;

    /** 删除人ID查询条件 */
	@JsonUnwrapped(prefix = "delBy")
	private Condition<String> delByCondition;

    /** 删除时间查询条件 */
	@JsonUnwrapped(prefix = "delTime")
	private Condition<LocalDateTime> delTimeCondition;

    /** [枚举]标志：0-顶部节点-TOP、1-父节点-PARENTNODE、2-叶节点-LEAFNODE、3-按钮-BUTTON、4-营销-MARKING、5-个人中心-USERCONTER查询条件 */
	@JsonUnwrapped(prefix = "mark")
	private Condition<DistrictPermissionMark> markCondition;

    /** [全局枚举]应用：0-大运营后台-YSQ_PLATFORM、1-集团版后台-YSQ_GROUP、2-悦商圈APP安卓版-YSQ_APP_ANDROID、3-悦商圈APPIOS版-YSQ_APP_IOS、4-悦商惠小程序-YSQ_MERCHANT_XCX、5-悦购小程序-YSQ_XCX、6-悦荷包小程序-YSQ_WALLET_XCX、7-悦商管小程序-YSQ_GROUP_XCX、7-悦商圈员工版小程序-YSQ_GROUP_EMPLOYEE_XCX查询条件 */
	@JsonUnwrapped(prefix = "application")
	private Condition<YsqAppType> applicationCondition;

	/**
	 * 构造一个查询条件对象
	 */
	public DistrictPermissionQuery() {
		super();
	}

	/**
	 * 依据实体对象构造一个查询条件对象
	 * 
	 * @param entity 实体对象
	 */
	public DistrictPermissionQuery(DistrictPermissionEntity entity) {
		super(entity);
	}

	/**
	 * 依据其它查询条件对象的信息构造一个查询条件对象
	 * 
	 * @param other 查询条件对象
	 */
	public DistrictPermissionQuery(DistrictPermissionQuery other) {
		super(other);
		if(other.idCondition != null) {
			this.idCondition = other.idCondition.copy();
		}
		if(other.groupIdCondition != null) {
			this.groupIdCondition = other.groupIdCondition.copy();
		}
		if(other.busdIdCondition != null) {
			this.busdIdCondition = other.busdIdCondition.copy();
		}
		if(other.menuIdCondition != null) {
			this.menuIdCondition = other.menuIdCondition.copy();
		}
		if(other.permissionCondition != null) {
			this.permissionCondition = other.permissionCondition.copy();
		}
		if(other.createdByCondition != null) {
			this.createdByCondition = other.createdByCondition.copy();
		}
		if(other.modifiedByCondition != null) {
			this.modifiedByCondition = other.modifiedByCondition.copy();
		}
		if(other.createdTimeCondition != null) {
			this.createdTimeCondition = other.createdTimeCondition.copy();
		}
		if(other.modifiedTimeCondition != null) {
			this.modifiedTimeCondition = other.modifiedTimeCondition.copy();
		}
		if(other.delCondition != null) {
			this.delCondition = other.delCondition.copy();
		}
		if(other.delByCondition != null) {
			this.delByCondition = other.delByCondition.copy();
		}
		if(other.delTimeCondition != null) {
			this.delTimeCondition = other.delTimeCondition.copy();
		}
		if(other.markCondition != null) {
			this.markCondition = other.markCondition.copy();
		}
		if(other.applicationCondition != null) {
			this.applicationCondition = other.applicationCondition.copy();
		}
	}

	@Override
	public QueryWrapper<DistrictPermissionEntity> toQueryWrapper() {
		QueryWrapper<DistrictPermissionEntity> wrapper = new QueryWrapper<>(this);
		if (idCondition != null) {
			idCondition.toWrapper(wrapper, COL_ID);
		}
		if (groupIdCondition != null) {
			groupIdCondition.toWrapper(wrapper, COL_GROUP_ID);
		}
		if (busdIdCondition != null) {
			busdIdCondition.toWrapper(wrapper, COL_BUSD_ID);
		}
		if (menuIdCondition != null) {
			menuIdCondition.toWrapper(wrapper, COL_MENU_ID);
		}
		if (permissionCondition != null) {
			permissionCondition.toWrapper(wrapper, COL_PERMISSION);
		}
		if (createdByCondition != null) {
			createdByCondition.toWrapper(wrapper, COL_CREATED_BY);
		}
		if (modifiedByCondition != null) {
			modifiedByCondition.toWrapper(wrapper, COL_MODIFIED_BY);
		}
		if (createdTimeCondition != null) {
			createdTimeCondition.toWrapper(wrapper, COL_CREATED_TIME);
		}
		if (modifiedTimeCondition != null) {
			modifiedTimeCondition.toWrapper(wrapper, COL_MODIFIED_TIME);
		}
		if (delCondition != null) {
			delCondition.toWrapper(wrapper, COL_DEL);
		}
		if (delByCondition != null) {
			delByCondition.toWrapper(wrapper, COL_DEL_BY);
		}
		if (delTimeCondition != null) {
			delTimeCondition.toWrapper(wrapper, COL_DEL_TIME);
		}
		if (markCondition != null) {
			markCondition.toWrapper(wrapper, COL_MARK);
		}
		if (applicationCondition != null) {
			applicationCondition.toWrapper(wrapper, COL_APPLICATION);
		}
		return wrapper;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return idCondition 查询条件
	 */
	public Condition<String> id() {
		this.idCondition = new Condition<>();
		return this.idCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return idCondition 查询条件
	 */
	public Condition<String> getIdCondition() {
		return idCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param idCondition 查询条件
	 */
	public void setIdCondition(Condition<String> idCondition) {
		this.idCondition = idCondition;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return groupIdCondition 查询条件
	 */
	public Condition<String> groupId() {
		this.groupIdCondition = new Condition<>();
		return this.groupIdCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return groupIdCondition 查询条件
	 */
	public Condition<String> getGroupIdCondition() {
		return groupIdCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param groupIdCondition 查询条件
	 */
	public void setGroupIdCondition(Condition<String> groupIdCondition) {
		this.groupIdCondition = groupIdCondition;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return busdIdCondition 查询条件
	 */
	public Condition<String> busdId() {
		this.busdIdCondition = new Condition<>();
		return this.busdIdCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return busdIdCondition 查询条件
	 */
	public Condition<String> getBusdIdCondition() {
		return busdIdCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param busdIdCondition 查询条件
	 */
	public void setBusdIdCondition(Condition<String> busdIdCondition) {
		this.busdIdCondition = busdIdCondition;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return menuIdCondition 查询条件
	 */
	public Condition<String> menuId() {
		this.menuIdCondition = new Condition<>();
		return this.menuIdCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return menuIdCondition 查询条件
	 */
	public Condition<String> getMenuIdCondition() {
		return menuIdCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param menuIdCondition 查询条件
	 */
	public void setMenuIdCondition(Condition<String> menuIdCondition) {
		this.menuIdCondition = menuIdCondition;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return permissionCondition 查询条件
	 */
	public Condition<String> permission() {
		this.permissionCondition = new Condition<>();
		return this.permissionCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return permissionCondition 查询条件
	 */
	public Condition<String> getPermissionCondition() {
		return permissionCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param permissionCondition 查询条件
	 */
	public void setPermissionCondition(Condition<String> permissionCondition) {
		this.permissionCondition = permissionCondition;
	}

	/**
	 * 构造并返回创建人ID查询条件
	 * 
	 * @return createdByCondition 创建人ID查询条件
	 */
	public Condition<String> createdBy() {
		this.createdByCondition = new Condition<>();
		return this.createdByCondition;
	}
	
	/**
	 * 获取创建人ID查询条件
	 * 
	 * @return createdByCondition 创建人ID查询条件
	 */
	public Condition<String> getCreatedByCondition() {
		return createdByCondition;
	}

	/**
	 * 设置创建人ID查询条件
	 * 
	 * @param createdByCondition 创建人ID查询条件
	 */
	public void setCreatedByCondition(Condition<String> createdByCondition) {
		this.createdByCondition = createdByCondition;
	}

	/**
	 * 构造并返回更新人ID查询条件
	 * 
	 * @return modifiedByCondition 更新人ID查询条件
	 */
	public Condition<String> modifiedBy() {
		this.modifiedByCondition = new Condition<>();
		return this.modifiedByCondition;
	}
	
	/**
	 * 获取更新人ID查询条件
	 * 
	 * @return modifiedByCondition 更新人ID查询条件
	 */
	public Condition<String> getModifiedByCondition() {
		return modifiedByCondition;
	}

	/**
	 * 设置更新人ID查询条件
	 * 
	 * @param modifiedByCondition 更新人ID查询条件
	 */
	public void setModifiedByCondition(Condition<String> modifiedByCondition) {
		this.modifiedByCondition = modifiedByCondition;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return createdTimeCondition 查询条件
	 */
	public Condition<String> createdTime() {
		this.createdTimeCondition = new Condition<>();
		return this.createdTimeCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return createdTimeCondition 查询条件
	 */
	public Condition<String> getCreatedTimeCondition() {
		return createdTimeCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param createdTimeCondition 查询条件
	 */
	public void setCreatedTimeCondition(Condition<String> createdTimeCondition) {
		this.createdTimeCondition = createdTimeCondition;
	}

	/**
	 * 构造并返回更新时间查询条件
	 * 
	 * @return modifiedTimeCondition 更新时间查询条件
	 */
	public Condition<LocalDateTime> modifiedTime() {
		this.modifiedTimeCondition = new Condition<>();
		return this.modifiedTimeCondition;
	}
	
	/**
	 * 获取更新时间查询条件
	 * 
	 * @return modifiedTimeCondition 更新时间查询条件
	 */
	public Condition<LocalDateTime> getModifiedTimeCondition() {
		return modifiedTimeCondition;
	}

	/**
	 * 设置更新时间查询条件
	 * 
	 * @param modifiedTimeCondition 更新时间查询条件
	 */
	public void setModifiedTimeCondition(Condition<LocalDateTime> modifiedTimeCondition) {
		this.modifiedTimeCondition = modifiedTimeCondition;
	}

	/**
	 * 构造并返回逻辑删除，1表示已删除,0表示未删除查询条件
	 * 
	 * @return delCondition 逻辑删除，1表示已删除,0表示未删除查询条件
	 */
	public Condition<Boolean> del() {
		this.delCondition = new Condition<>();
		return this.delCondition;
	}
	
	/**
	 * 获取逻辑删除，1表示已删除,0表示未删除查询条件
	 * 
	 * @return delCondition 逻辑删除，1表示已删除,0表示未删除查询条件
	 */
	public Condition<Boolean> getDelCondition() {
		return delCondition;
	}

	/**
	 * 设置逻辑删除，1表示已删除,0表示未删除查询条件
	 * 
	 * @param delCondition 逻辑删除，1表示已删除,0表示未删除查询条件
	 */
	public void setDelCondition(Condition<Boolean> delCondition) {
		this.delCondition = delCondition;
	}

	/**
	 * 构造并返回删除人ID查询条件
	 * 
	 * @return delByCondition 删除人ID查询条件
	 */
	public Condition<String> delBy() {
		this.delByCondition = new Condition<>();
		return this.delByCondition;
	}
	
	/**
	 * 获取删除人ID查询条件
	 * 
	 * @return delByCondition 删除人ID查询条件
	 */
	public Condition<String> getDelByCondition() {
		return delByCondition;
	}

	/**
	 * 设置删除人ID查询条件
	 * 
	 * @param delByCondition 删除人ID查询条件
	 */
	public void setDelByCondition(Condition<String> delByCondition) {
		this.delByCondition = delByCondition;
	}

	/**
	 * 构造并返回删除时间查询条件
	 * 
	 * @return delTimeCondition 删除时间查询条件
	 */
	public Condition<LocalDateTime> delTime() {
		this.delTimeCondition = new Condition<>();
		return this.delTimeCondition;
	}
	
	/**
	 * 获取删除时间查询条件
	 * 
	 * @return delTimeCondition 删除时间查询条件
	 */
	public Condition<LocalDateTime> getDelTimeCondition() {
		return delTimeCondition;
	}

	/**
	 * 设置删除时间查询条件
	 * 
	 * @param delTimeCondition 删除时间查询条件
	 */
	public void setDelTimeCondition(Condition<LocalDateTime> delTimeCondition) {
		this.delTimeCondition = delTimeCondition;
	}

	/**
	 * 构造并返回[枚举]标志：0-顶部节点-TOP、1-父节点-PARENTNODE、2-叶节点-LEAFNODE、3-按钮-BUTTON、4-营销-MARKING、5-个人中心-USERCONTER查询条件
	 * 
	 * @return markCondition [枚举]标志：0-顶部节点-TOP、1-父节点-PARENTNODE、2-叶节点-LEAFNODE、3-按钮-BUTTON、4-营销-MARKING、5-个人中心-USERCONTER查询条件
	 */
	public Condition<DistrictPermissionMark> mark() {
		this.markCondition = new Condition<>();
		return this.markCondition;
	}
	
	/**
	 * 获取[枚举]标志：0-顶部节点-TOP、1-父节点-PARENTNODE、2-叶节点-LEAFNODE、3-按钮-BUTTON、4-营销-MARKING、5-个人中心-USERCONTER查询条件
	 * 
	 * @return markCondition [枚举]标志：0-顶部节点-TOP、1-父节点-PARENTNODE、2-叶节点-LEAFNODE、3-按钮-BUTTON、4-营销-MARKING、5-个人中心-USERCONTER查询条件
	 */
	public Condition<DistrictPermissionMark> getMarkCondition() {
		return markCondition;
	}

	/**
	 * 设置[枚举]标志：0-顶部节点-TOP、1-父节点-PARENTNODE、2-叶节点-LEAFNODE、3-按钮-BUTTON、4-营销-MARKING、5-个人中心-USERCONTER查询条件
	 * 
	 * @param markCondition [枚举]标志：0-顶部节点-TOP、1-父节点-PARENTNODE、2-叶节点-LEAFNODE、3-按钮-BUTTON、4-营销-MARKING、5-个人中心-USERCONTER查询条件
	 */
	public void setMarkCondition(Condition<DistrictPermissionMark> markCondition) {
		this.markCondition = markCondition;
	}

	/**
	 * 构造并返回[全局枚举]应用：0-大运营后台-YSQ_PLATFORM、1-集团版后台-YSQ_GROUP、2-悦商圈APP安卓版-YSQ_APP_ANDROID、3-悦商圈APPIOS版-YSQ_APP_IOS、4-悦商惠小程序-YSQ_MERCHANT_XCX、5-悦购小程序-YSQ_XCX、6-悦荷包小程序-YSQ_WALLET_XCX、7-悦商管小程序-YSQ_GROUP_XCX、7-悦商圈员工版小程序-YSQ_GROUP_EMPLOYEE_XCX查询条件
	 * 
	 * @return applicationCondition [全局枚举]应用：0-大运营后台-YSQ_PLATFORM、1-集团版后台-YSQ_GROUP、2-悦商圈APP安卓版-YSQ_APP_ANDROID、3-悦商圈APPIOS版-YSQ_APP_IOS、4-悦商惠小程序-YSQ_MERCHANT_XCX、5-悦购小程序-YSQ_XCX、6-悦荷包小程序-YSQ_WALLET_XCX、7-悦商管小程序-YSQ_GROUP_XCX、7-悦商圈员工版小程序-YSQ_GROUP_EMPLOYEE_XCX查询条件
	 */
	public Condition<YsqAppType> application() {
		this.applicationCondition = new Condition<>();
		return this.applicationCondition;
	}
	
	/**
	 * 获取[全局枚举]应用：0-大运营后台-YSQ_PLATFORM、1-集团版后台-YSQ_GROUP、2-悦商圈APP安卓版-YSQ_APP_ANDROID、3-悦商圈APPIOS版-YSQ_APP_IOS、4-悦商惠小程序-YSQ_MERCHANT_XCX、5-悦购小程序-YSQ_XCX、6-悦荷包小程序-YSQ_WALLET_XCX、7-悦商管小程序-YSQ_GROUP_XCX、7-悦商圈员工版小程序-YSQ_GROUP_EMPLOYEE_XCX查询条件
	 * 
	 * @return applicationCondition [全局枚举]应用：0-大运营后台-YSQ_PLATFORM、1-集团版后台-YSQ_GROUP、2-悦商圈APP安卓版-YSQ_APP_ANDROID、3-悦商圈APPIOS版-YSQ_APP_IOS、4-悦商惠小程序-YSQ_MERCHANT_XCX、5-悦购小程序-YSQ_XCX、6-悦荷包小程序-YSQ_WALLET_XCX、7-悦商管小程序-YSQ_GROUP_XCX、7-悦商圈员工版小程序-YSQ_GROUP_EMPLOYEE_XCX查询条件
	 */
	public Condition<YsqAppType> getApplicationCondition() {
		return applicationCondition;
	}

	/**
	 * 设置[全局枚举]应用：0-大运营后台-YSQ_PLATFORM、1-集团版后台-YSQ_GROUP、2-悦商圈APP安卓版-YSQ_APP_ANDROID、3-悦商圈APPIOS版-YSQ_APP_IOS、4-悦商惠小程序-YSQ_MERCHANT_XCX、5-悦购小程序-YSQ_XCX、6-悦荷包小程序-YSQ_WALLET_XCX、7-悦商管小程序-YSQ_GROUP_XCX、7-悦商圈员工版小程序-YSQ_GROUP_EMPLOYEE_XCX查询条件
	 * 
	 * @param applicationCondition [全局枚举]应用：0-大运营后台-YSQ_PLATFORM、1-集团版后台-YSQ_GROUP、2-悦商圈APP安卓版-YSQ_APP_ANDROID、3-悦商圈APPIOS版-YSQ_APP_IOS、4-悦商惠小程序-YSQ_MERCHANT_XCX、5-悦购小程序-YSQ_XCX、6-悦荷包小程序-YSQ_WALLET_XCX、7-悦商管小程序-YSQ_GROUP_XCX、7-悦商圈员工版小程序-YSQ_GROUP_EMPLOYEE_XCX查询条件
	 */
	public void setApplicationCondition(Condition<YsqAppType> applicationCondition) {
		this.applicationCondition = applicationCondition;
	}

}
